﻿using System;
using Campus.Main.Basic;

namespace Campus.Main.SuperUser
{
    public partial class FormForSuperUser:BasicUserForm
    {
        public FormForSuperUser()
        {
            InitializeComponent();
        }

        public FormForSuperUser(int a):base()
        {
            InitializeComponent();
            btn_setting.Click += btn_setting_Click;
            btn_onkayit.Click += button1_Click;
        }
        protected override void btn_setting_Click(object sender, System.EventArgs e)
        {
            SettingMainForm f=new SettingForSuperRoot();
            f.ShowDialog();
        }
        protected override void button1_Click(object sender, System.EventArgs e)
        {
            var k = new KayitForSuperUser();
            if (radioButton1.Checked)
            {
                k.pol = 1;
                k.cmb_sex.SelectedValue = 1;
            }
            if (radioButton2.Checked)
            {
                k.pol = 2;
                k.cmb_sex.SelectedValue = 2;
            }
            k.ShowDialog();
        }
        protected override void btn_search_Click(object sender, System.EventArgs e)
        {
            SearchForm f = new SearchForSuperUser();
            f.ShowDialog();
        }
        protected override void btn_allListO_Click(object sender, EventArgs e)
        {
            BolumInsertForm f = new AllListForSuperUser();
            f.ShowDialog();
        }
    }
}
